<?php
namespace app\index\controller;
use \think\Controller;
use \think\Request;
use \think\Session;
use \think\Db;

class Section extends Controller
{
    public function index($id)
    {

        $per = Session::get('person');

        $s_name = Db::name('section')->field('name')->where(['id'=>$id])->find();

        $area = Db::name('area')->where(['sec_id'=>$id])->select();
        // var_dump($area);die;
        return $this->fetch('index',['title'=>'蒸汽男孩论坛-游戏爱好者聚集地','per'=>$per,'id'=>$id,'s_name'=>$s_name['name'],'area'=>$area]);
    }


}
